import AlertCircle from "@/assets/image/icons/alert-circle.svg";
import React from "react";
import styled from "styled-components";

export const StyleViewDocument = styled("span")`
  //styleName: 08 Action Text EN/Regular Underline;
  font-family: Roboto;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
  color: #7a6145;
  text-decoration: underline;
  cursor: pointer;
`;

// 上传文件title

export const UploadTitle = styled("div")`
  //styleName: 08 Action Text EN/Regular;
  font-family: Roboto;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
  color: #202020;
  margin: 24px 0 12px 0;
  &:first-child {
    margin: 0 0 12px 0;
  }
`;
interface props {
  className?: string;
}

export const StyledAlertCircle = styled((props: props) =>
  React.createElement("img", { src: AlertCircle, ...props })
)`
  vertical-align: middle;
`;

//水平居中
export const StyledTextAlign = styled("div")`
  text-align: center;
`;

//元素隐藏
export const StyledNone = styled("div")`
  display: none;
`;

export const StyleStatusSpan = styled("span")`
  padding: 4px 8px 4px 8px;
  border-radius: 20px;
  background-color: #e4f6ea;
  color: #26a461;
  font-family: Roboto;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  text-align: left;
  margin-left: 12px;
`;

export const StyleApprovedStatusSpan = styled(StyleStatusSpan)`
  background-color: #e4f6ea;
  color: #26a461;
`;

export const StyleDeclineStatusSpan = styled(StyleStatusSpan)`
  background-color: #f9ebeb;
  color: #c02020;
`;

export const StyleExpiredStatusSpan = styled(StyleStatusSpan)`
  background-color: #e1e1e1;
  color: #696767;
`;

//Each type of vehicle can only be registered once.
export const StyledTipsText = styled("div")`
  color: #696767;
  //styleName: 08 Action Text EN/Regular;
  font-family: Roboto;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
  margin-bottom: 24px;
`;

//Each type of vehicle can only be registered once.
export const StyledCardBorder = styled("div")`
  box-shadow: 0px 2px 8px 0px #4444441a;
  border: 1px solid #e1e1e1;
  border-radius: 20px;
  padding: 40px;
  @media (max-width: 768px) {
    padding: 5px;
  }
`;
